package com.motong.gongdan.vo.H5Vo.stock.query;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;
import java.util.Map;

@Data
@Accessors(chain = true)
@ApiModel("库存余额查询条件")
public class StockBalanceQuery {

    @ApiModelProperty(value = "表名前缀", hidden = true)
    private String tablePre = "pr";

    @ApiModelProperty("常用条件(1 库存数量小于安全库存, 2 库存数量小于最小库存, 4 库存数量大于最大库存)")
    private Integer commonCondition;

    @ApiModelProperty("产品属性(0 自制, 1 外购, 2 委外, -1 全部)")
    private Integer attribute;

    @ApiModelProperty("排序列")
    private String orderBy = "id";

    @ApiModelProperty("排序(ASC 升序, DESC 降序)")
    private String sort;

    @ApiModelProperty("自定义筛选条件(范围两端以,号连接)")
    private Map<Integer,String> customFieldMap;

    @ApiModelProperty(value = "产品id集合", hidden = true)
    private List<Integer> productIds;

    @ApiModelProperty("搜索产品名称/产品编号/产品规格")
    private String searchOther;

    @ApiModelProperty("页码")
    private Integer page = 1;

    @ApiModelProperty("条数")
    private Integer limit = -1;
}

